// pages/rank/rank.js
Page({
  data: {
    tabChoose: 'domestic',
    domesticRankList: [{
      id: 1,
      rank: 1,
      lastRank: 1,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 2,
      rank: 2,
      lastRank: 2,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 3,
      rank: 3,
      lastRank: 3,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 4,
      rank: 4,
      lastRank: 4,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 5,
      rank: 5,
      lastRank: 5,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 6,
      rank: 6,
      lastRank: 6,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 7,
      rank: 7,
      lastRank: 7,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 8,
      rank: 8,
      lastRank: 8,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 9,
      rank: 9,
      lastRank: 9,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 10,
      rank: 10,
      lastRank: 10,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 11,
      rank: 11,
      lastRank: 11,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 12,
      rank: 12,
      lastRank: 12,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 13,
      rank: 13,
      lastRank: 13,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 14,
      rank: 14,
      lastRank: 14,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 15,
      rank: 15,
      lastRank: 15,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 16,
      rank: 16,
      lastRank: 16,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 17,
      rank: 17,
      lastRank: 17,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 18,
      rank: 18,
      lastRank: 18,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }],

    internationalRankList: [{
      id: 1,
      rank: 1,
      lastRank: 2,
      name: '沃尔玛（WALMART）111',
      operating: '500,343'
    }, {
      id: 2,
      rank: 2,
      lastRank: 1,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 3,
      rank: 3,
      lastRank: 3,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 4,
      rank: 4,
      lastRank: 4,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 5,
      rank: 5,
      lastRank: 5,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 6,
      rank: 6,
      lastRank: 6,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 7,
      rank: 7,
      lastRank: 7,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 8,
      rank: 8,
      lastRank: 8,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 9,
      rank: 9,
      lastRank: 9,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 10,
      rank: 10,
      lastRank: 10,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 11,
      rank: 11,
      lastRank: 11,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 12,
      rank: 12,
      lastRank: 12,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 13,
      rank: 13,
      lastRank: 13,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 14,
      rank: 14,
      lastRank: 14,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 15,
      rank: 15,
      lastRank: 15,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 16,
      rank: 16,
      lastRank: 16,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 17,
      rank: 17,
      lastRank: 17,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }, {
      id: 18,
      rank: 18,
      lastRank: 18,
      name: '沃尔玛（WALMART）',
      operating: '500,343'
    }]
  },
  rankTabTap: function(e){
    var tabChoose = this.data.tabChoose;
    tabChoose = e.currentTarget.dataset.tab;
    this.setData({
      tabChoose,
    })
  }
})